<?php
declare (strict_types = 1);

namespace app\controller;

use app\BaseController;
use app\model\Config;
use think\Request;

class ConfigController extends BaseController
{
	function getPrivacyPolicy()
	{
		$row = Config::getFieldByName('privacy_policy','value');
		$this->writeJson($row);
	}
	
	function getUserAgreement()
	{
		$row = Config::getFieldByName('user_agreement','value');
		$this->writeJson($row);
	}
	
	function getVipAgreement()
	{
		$row = Config::getFieldByName('vip_agreement','value');
		$this->writeJson($row);
	}
}
